package io.renren.modules.generator.service;

import io.renren.common.utils.Query;
import io.renren.modules.generator.entity.GuardianEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-10-13 22:43:29
 */
public interface GuardianService {
	
	GuardianEntity queryObject(String guardianno);
	
	List<GuardianEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(GuardianEntity guardian);
	
	void update(GuardianEntity guardian);
	
	void delete(String guardianno);
	
	void deleteBatch(String[] guardiannos);
	/**
	 * 通过名字查询监护人
	 * @param query
	 * @return
	 */
	List<GuardianEntity> queryListByName(Query query);
}
